import request from "@/utils/request";

import axios from "axios";
//本地ollama接口

export const  localOllamaUrl = axios.create({
    baseURL: "http://localhost:11434/api/generate",
    timeout: 5000,
    // headers: {
    //     "Content-Type": "application/json",
    // },
});
// 上传用户输入信息
export const uploadInput = (params) => request.post("/chat/uploadInput", params);
// 获取历史聊天记录（最多后10条）
export const getChatHistory = (params) => request.post("/chat/getChat", params);